package com.imooc.o2o.web.shopadmin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 徐老板
 * @date 2020/1/5   20:22
 */
@Controller
@RequestMapping(value = "/shopadmin",method = {RequestMethod.GET})
public class ShopAdminController {

    @RequestMapping("/shopoperation")
    public String shopoOperation(){
        return "shop/shopoperation";
    }

    @RequestMapping("/shoplist")
    public String shopList(){
        /**
         * 这个会根据前端控制器返回一个物理地址
         * 即/WEN-INF/html/加下面这个链接
         */
        return "shop/shoplist";
    }

    @RequestMapping("/shopmanagement")
    public String shopManagement(){

        return "shop/shopmanage";
    }

    @GetMapping("/productcategorymangement")
    private String productCategoryMangement(){
        return "shop/productcategorymangement";
    }
}
